﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.controllers.payment {
    import net.wooga.pets.events.*;
    import net.wooga.pets.models.*;
    import net.wooga.pets.constants.*;
    import org.robotlegs.mvcs.*;

    public class OpenBoostShopCommand extends Command {

        public var paymentModel:PaymentModel;
        protected var _titleKey:String;// = "boost_buy_headline"

        override public function execute():void{
            var _local1:Array = (this.paymentModel.getData(ProtocolConstants.BUY_BOOSTS) as Array);
            var _local2:Object = {title:this._titleKey, action:ProtocolConstants.BUY_BOOSTS, items:_local1};
            var _local3:InfoEvent = new InfoEvent(EventConstants.CREATE_POPUP, GameConstants.SHOP_POPUP, _local2);
            dispatch(_local3);
        }

    }
}//package net.wooga.pets.controllers.payment 
